Approve Renewal Beneficiary
The Approve Renewal Beneficiary API is used to approve or decline renewal beneficiary tickets. Legal representatives who have the "CanApproveBeneficiary" permission can approve the renewal beneficiary ticket.
Method: POST
{{URL}}/jsonrpc
Headers
Name | Value |
---|---|
Content-Type | application/json |
Example
Payload Parameters
Parameter | Description |
---|---|
RequestID Mandatory | String The ID of the request Ex:"395003 " |
reason Mandatory | String The reason for approving or declining Ex:"test " |
status Mandatory | String The status to set Ex:"APPROVED ", "DECLINED" |
customerID Mandatory | String The customer ID Ex:"100000000048001 " |
TicketName Mandatory | String The name of the ticket Ex:"RENEWAL_BENEFICIARY " |
- cURL
- C#
- Go
- NodeJs
curl --location 'https://wallet.netxd.com/plwallet/rpc/WalletService/ApproveEditBeneficiary' \
--header 'DeviceID: 8020' \
--header 'Signature: keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic ci5hbmJhbGFnYW5AbmV0eGQuY29tOmQ0Mjc2ZmIx' \
--data '{"RequestID":"395003","reason":"test","status":"APPROVED","customerID":"100000000048001","TicketName":"RENEWAL_BENEFICIARY"}'
var options = new RestClientOptions("https://wallet.netxd.com")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("/plwallet/rpc/WalletService/ApproveEditBeneficiary", Method.Post);
request.AddHeader("DeviceID", "8020");
request.AddHeader("Signature", "keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Basic ci5hbmJhbGFnYW5AbmV0eGQuY29tOmQ0Mjc2ZmIx");
var body = @"{" + "\n" +
@" ""RequestID"": ""395003""," + "\n" +
@" ""reason"": ""test""," + "\n" +
@" ""status"": ""APPROVED""," + "\n" +
@" ""customerID"": ""100000000048001""," + "\n" +
@" ""TicketName"": ""RENEWAL_BENEFICIARY""" + "\n" +
@"}";
request.AddStringBody(body, DataFormat.Json);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://wallet.netxd.com/plwallet/rpc/WalletService/ApproveEditBeneficiary"
method := "POST"
payload := strings.NewReader(`{
"RequestID": "395003",
"reason": "test",
"status": "APPROVED",
"customerID": "100000000048001",
"TicketName": "RENEWAL_BENEFICIARY"
}`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("DeviceID", "8020")
req.Header.Add("Signature", "keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=")
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Basic ci5hbmJhbGFnYW5AbmV0eGQuY29tOmQ0Mjc2ZmIx")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'wallet.netxd.com',
'path': '/plwallet/rpc/WalletService/ApproveEditBeneficiary',
'headers': {
'DeviceID': '8020',
'Signature': 'keyId=8020,algorithm=ecdsa-sha256,signature=MEUCIQCNi1vjPf/HpI9R2DXnc0Zt1s6YmWyA4H1x813lJ+tuDgIgB+lrc+iCMyTUGiraG9kGKNDXYiz7RfBBtifr5wUQs54=',
'Content-Type': 'application/json',
'Authorization': 'Basic ci5hbmJhbGFnYW5AbmV0eGQuY29tOmQ0Mjc2ZmIx'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({
"RequestID": "395003",
"reason": "test",
"status": "APPROVED",
"customerID": "100000000048001",
"TicketName": "RENEWAL_BENEFICIARY"
});
req.write(postData);
req.end();
Body
{
"RequestID": "395003",
"reason": "test",
"status": "APPROVED",
"customerID": "100000000048001",
"TicketName": "RENEWAL_BENEFICIARY"
}
Response: 200
Response Parameters
Parameter | Description |
---|---|
ID | String Unique identifier of the beneficiary Ex:"64e341a0af707b83dcfdaf0b " |
createdDate | String Timestamp indicating when the beneficiary entity was created Ex:"2023-08-21T10:51:12.703Z " |
updatedDate | String Timestamp indicating the most recent update to the beneficiary entity Ex:"0001-01-01T00:00:00Z " |
type | String Type of beneficiary Ex:"BUSINESS", "INDIVIDUAL " |
firstName | String First name of the beneficiary Ex:"Reddygari " |
lastName | String Last name of the beneficiary Ex:"ChennReddy " |
accountType | String Account type Ex:"DIGITAL_ASSET " |
contact | Object |
String Email address of the beneficiary Ex:"chennareddy.s+099@netxd.com " | |
phoneNumber | String Phone number of the beneficiary Ex:"1234567890 " |
address | Object |
line1 | String Address line 1 Ex:"alaska " |
city | String City of the beneficiary's address Ex:"Seattle " |
state | String State of the beneficiary's address Ex:"WA " |
country | String Country of the beneficiary's address Ex:"US " |
zipCode | String Zip code of the beneficiary's address Ex:"98104 " |
createdBy | String Email address of the user who created the beneficiary Ex:"chennareddy.s+102@netxd.com " |
status | String Status of the beneficiary Ex:"ACTIVE " |
customerID | String Unique identifier of the customer associated with the beneficiary Ex:"100000000048001 " |
publicKey | String Public key associated with the beneficiary Ex:"GBWHB6HEPJPT5WV7UJTLAKPAGV336ER55FCEZFT5QGYOEME75HPS3EYT " |
network | String Network associated with the beneficiary Ex:"STELLER " |
ceResponse | Object |
result | String Context Engine watchlist result Ex:"success " |
detail | String Context Engine watchlist details Ex:"success " |
risk | Object |
riskScore | String Risk score of the beneficiary Ex:"0 " |
ofac | Object |
watchList | Object |
INDIVIDUALTransactionNumber | String Individual Transaction number Ex:"1707 " |
updateHistory | Array |
userName | String Email address of the user who updated Ex:"chennareddy.s+106@netxd.com " |
updatedDate | String Timestamp of the update Ex:"2023-08-21T10:51:35.453Z " |
isInternal | Boolean Indicates whether the beneficiary is internal (true) or external (false) Ex: false |
{
"ID": "64e341a0af707b83dcfdaf0b",
"createdDate": "2023-08-21T10:51:12.703Z",
"updatedDate": "0001-01-01T00:00:00Z",
"type": "INDIVIDUAL",
"firstName": "Chenna",
"lastName": "hi",
"accountType": "DIGITAL_ASSET",
"contact": {
"email": "chennareddy.s+099@netxd.com",
"phoneNumber": "1234567890"
},
"address": {
"line1": "alaska",
"city": "Seattle",
"state": "WA",
"country": "US",
"zipCode": "98104"
},
"createdBy": "chennareddy.s+106@netxd.com",
"status": "ACTIVE",
"customerID": "100000000048001",
"publicKey": "GBWHB6HEPJPT5WV7UJTLAKPAGV336ER55FCEZFT5QGYOEME75HPS3EYT",
"network": "STELLER",
"ceResponse": {
"result": "success",
"detail": "success",
"risk": {
"riskScore": "0"
},
"ofac": {},
"watchList": {},
"internalTransactionNumber": "1707"
},
"updateHistory": [
{
"userName": "chennareddy.s+106@netxd.com",
"updatedDate": "2023-08-21T10:51:35.453Z"
},
{
"userName": "chennareddy.s+106@netxd.com",
"updatedDate": "2023-08-21T10:55:14.872Z"
},
{
"userName": "chennareddy.s+106@netxd.com",
"updatedDate": "2023-08-21T10:57:07.761Z"
},
{
"userName": "chennareddy.s+106@netxd.com",
"updatedDate": "2023-08-21T10:58:07.712Z"
},
{
"userName": "chennareddy.s+106@netxd.com",
"updatedDate": "2023-08-25T13:22:17.65Z"
}
],
"isInternal": false
}